<script>
	import wechat from "./common/wechat.js";
	export default {
		globalData: {
			phone: "",
			showPrivacy: false
		},
		data: {},
		methods: {},
		onLoad() {

		},

		onShow: function() {
			console.log("App Show");
			wechat.checkMiniProgramUpdate()


		},
		onHide: function() {
			console.log("App Hide");
		},
		onLaunch: function(options) {
			if (uni.getPrivacySetting) {
				uni.getPrivacySetting({
					success: res => {
						console.log("是否需要授权：", res.needAuthorization, "隐私协议的名称为：", res.privacyContractName)
						if (res.needAuthorization) {
							getApp().globalData.showPrivacy = true;
						} else {
							getApp().globalData.showPrivacy = false;
						}
					},
					fail: () => {},
					complete: () => {},
				})
			}
		},
	};
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/static/style/base.scss';

	page {
		font-size: 25rpx;
		background: white;
	}

	.wexinBackground {
		background: #32cd32 !important;
	}

	.alipayBackground {
		background: #007aff !important;
	}

	.weixinColor {
		color: #32cd32;
	}

	.alipayColor {
		color: #007aff;
	}

	.noMore {
		margin: 50rpx;
		text-align: center;
		color: grey;
	}

	.empty {
		display: flex;
		flex-flow: column;
		align-items: center;
		justify-content: center;
		/* background: white; */
		position: fixed;
		top: 40.5%;
		left: 50%;
		width: 100%;
		transform: translate(-50%, -50%);
		color: #ffda00;
		text-align: center;
		font-size: 35rpx;
		font-weight: 600;
	}

	/* .empty image {
  height: 25vw;
  width: 25vw;
  margin-bottom: 20rpx;
} */
</style>